﻿using UnityEngine;
using System.Collections;

public class BaseEnemy : MonoBehaviour 
{
    protected StateMachine<BaseEnemy> m_stateMachine;

	// Use this for initialization
	void Start () 
	{
        m_stateMachine = new StateMachine<BaseEnemy>();
	}
	
	// Update is called once per frame
	void Update () 
	{
        m_stateMachine.Update();
	}

	void OnCollisionEnter2D(Collision2D coll) 
	{
		//Destroy( gameObject );
	}

}
